home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / guvenlik / syslinux-3.07.exe / sample / c32exit.S < prev    next >
Encoding:
Text File  |  2003-12-12  |  253 b   |  11 lines

  1. # $Id#
  2. #
  3. # Implementation of exit() for com32 based on c32entry.S
  4. #
  5.     .text
  6.     .globl exit
  7. exit:
  8.     movl 4(%esp),%eax        # Exit code in %eax = return value
  9.     movl (__entry_esp),%esp        # Return stack pointer to entry value
  10.     ret                # Return to termination address
  11.